aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/mass test client/Commands/Inventory/AppearanceCommand.cs
blob: 43aa784586ca095d0c947a9e11ef9bc357ca4bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;

namespace libsecondlife.TestClient
{
    public class AppearanceCommand : Command
    {
        Utilities.Assets.AssetManager Assets;
        Utilities.Appearance.AppearanceManager Appearance;

		public AppearanceCommand(TestClient testClient)
        {
            Name = "appearance";
            Description = "Set your current appearance to your last saved appearance";

            Assets = new libsecondlife.Utilities.Assets.AssetManager(testClient);
            Appearance = new libsecondlife.Utilities.Appearance.AppearanceManager(testClient, Assets);
        }

        public override string Execute(string[] args, LLUUID fromAgentID)
        {
            Appearance.SetPreviousAppearance();
            return "Done.";
        }
    }
}